package com.shy.example.service.consumer.service;

import org.springframework.stereotype.Component;

@Component
public class DeptHystrixFallbackService implements DeptHystrixService{
    private static final String RETRY_MESSAGE = "本网站提醒您，系统繁忙，请稍后重试！";
    @Override
    public String deptInfo_Ok(Integer id) {
        return "-------------" + RETRY_MESSAGE + "--------------";
    }

    @Override
    public String deptInfo_Timeout(Integer id) {
        return "-------------" + RETRY_MESSAGE + "--------------";
    }
}
